package com.histone.grab_ticket.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.time.LocalDateTime;

@Document
@Data
public class TicketEntity {
    @Id
    private String id;
    @Field
    private String title;
    @Field
    private String description;
    @Field
    private String type;
    @Field
    private String status;
    @Field
    private String contact;     //接单人
    @Field
    private String creator;     //开单人
    @Field
    private LocalDateTime creatTime;

}
